package com.guigu.community.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.community.pojo.Merchants;
import com.guigu.community.pojo.Suppliers;
import com.guigu.community.pojo.Users;
import com.guigu.community.mapper.UsersMapper;
import com.guigu.community.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users>  implements  UsersService{
    @Autowired
    private UsersMapper usersMapper;


    @Override
    public Users listSuppliers(Integer sid) {
        return usersMapper.listSupplier(sid);
    }

    @Override
    public Users listMerchants(Integer mid) {
        return usersMapper.listMerchants(mid);
    }
}
